package com.jungle.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.jungle.common.core.domain.MybatisBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Comment;
import org.locationtech.jts.geom.Geometry;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 地域对象 c_area
 *
 * @author caomin
 * @date 2022-11-13
 */


@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "c_area")
@org.hibernate.annotations.Table(appliesTo = "c_area", comment = "地域")
public class CommonArea extends MybatisBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id
    @TableId(value = "id")
    @Comment(value = "id")

    private String id;
    /**
     * adcode
     */
    @Comment(value = "adcode")

    private String adCode;
    /**
     * 中心点
     */
    @Comment(value = "中心点")

    private String center;
    /**
     * 市code
     */
    @Comment(value = "市code")

    private String cityCode;
    /**
     * 国家code
     */
    @Comment(value = "国家code")

    private String countyCode;
    /**
     * 全名
     */
    @Comment(value = "全名")

    private String fullName;
    /**
     * 级别
     */
    @Comment(value = "级别")

    private String level;
    /**
     * 名称
     */
    @Comment(value = "名称")

    private String name;
    /**
     * 父级code
     */
    @Comment(value = "父级code")

    private String parentCode;
    /**
     * 范围数据
     */
    @Comment(value = "范围数据")
    @Column(columnDefinition = "geometry")
    private Geometry polyline;
    /**
     * 省级code
     */
    @Comment(value = "省级code")

    private String provinceCode;
    /**
     * 镇code
     */
    @Comment(value = "镇code")

    private String townCode;
    /**
     * code
     */
    @Comment(value = "code")

    private String code;
//    /**
//     * 是否改变
//     */
//    @Comment(value = "是否改变")
//
//    private String change;
//    /**
//     * 排序
//     */
//    @Comment(value = "排序")
//
//    private Long index;
    /**
     * 备注
     */
    @Comment(value = "备注")

    private String remarks;
    /**
     * 短编码
     */
    @Comment(value = "短编码")

    private String shortCode;

}
